package edu.towson.cosc.brentEttinger.compiler;

public class MyCompiler {
	
	public static String token;
	static MyLexicalAnalyzer lexer;
	static MySyntaxAnalyzer parser;
	static MySemanticAnalyzer semantic;
	public static void main(String[] args) {
		token = "";
		if (args.length != 1){
			System.err.println("Error");
			System.exit(0);
		}
		//check extension
		//intialize parse tree array
		//otheri intializations
		String fileName = args[0];
		lexer = new MyLexicalAnalyzer();
		lexer.getNextToken();
		
		parser = new MySyntaxAnalyzer();
		parser.lolcode();
		
		semantic = new MySemanticAnalyzer();
		//call semantic analyzer
		
		//write output file
		//clean up - close files, destroy
	}

}
